package com.demo.zhihu.model;

import javax.xml.crypto.Data;

import org.apache.ibatis.type.Alias;

@Alias("Answer")
public class Answer {
	private int id;
	private int question;
	private int user;
	private Data data;
	private String content;
	private int comments;
	
	public static final int ME = 0;
	
	
	public Answer() {}

	public Answer(int id, int comments) {
		this.setId(id);
		this.setComments(comments);
	}
	
	public Answer(int question, int user, String content) {
		this.setQuestion(question);
		this.setUser(user);
		this.setContent(content);
	}
	
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getQuestion() {
		return question;
	}

	public void setQuestion(int question) {
		this.question = question;
	}

	public int getUser() {
		return user;
	}

	public void setUser(int user) {
		this.user = user;
	}

	public int getComments() {
		return comments;
	}

	public void setComments(int comments) {
		this.comments = comments;
	}

	public Data getData() {
		return data;
	}

	public void setData(Data data) {
		this.data = data;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
}
